package com.zhongwang.mms.module.material.dao;

import com.zhongwang.mms.gen.entity.MProjectInventoryMark;
import com.zhongwang.mms.gen.entity.MProjectInventoryMarkExample;
import com.zhongwang.mms.module.material.model.MInventoryProjectMarkModel;
import com.zhongwang.mms.module.material.model.MProjectInventoryMarkModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MProjectInventoryMarkDao {
    long countByExample(MProjectInventoryMarkExample example);

    int deleteByExample(MProjectInventoryMarkExample example);

    int deleteByPrimaryKey(Integer pimId);

    int insert(MProjectInventoryMark record);

    int insertSelective(MProjectInventoryMark record);

    List<MProjectInventoryMark> selectByExample(MProjectInventoryMarkExample example);

    MProjectInventoryMark selectByPrimaryKey(Integer pimId);

    int updateByExampleSelective(@Param("record") MProjectInventoryMark record, @Param("example") MProjectInventoryMarkExample example);

    int updateByExample(@Param("record") MProjectInventoryMark record, @Param("example") MProjectInventoryMarkExample example);

    int updateByPrimaryKeySelective(MProjectInventoryMark record);

    int updateByPrimaryKey(MProjectInventoryMark record);

    /*--myself--*/

    /**
     * 项目划库存列表
     *
     * @param projectInventoryMarkModel
     * @return
     */
    List<MProjectInventoryMarkModel> findMarkListByQuery(MProjectInventoryMarkModel projectInventoryMarkModel);

}